package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SyEmpAreaPowerDao;
import cn.com.bdqn.entity.SyEmpAreaPower;
import cn.com.bdqn.service.SyEmpAreaPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyEmpAreaPowerServiceImpl implements SyEmpAreaPowerService {

    @Autowired
    private SyEmpAreaPowerDao dao;

    @Override
    public List<SyEmpAreaPower> queryByEmpId(Long empId) {
        return dao.queryByEmpId(empId);
    }

    @Override
    public int delSyEmpAreaPower(Long empId) {
        return dao.delSyEmpAreaPower(empId);
    }

    @Override
    public int addSyEmpAreaPower(SyEmpAreaPower syEmpAreaPower) {
        return dao.addSyEmpAreaPower(syEmpAreaPower);
    }
}
